From dd464a10f895a25ae7e9eed2847aa38e0429ed3c Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 3 Nov 2003 14:35:55 +0000 Subject: [PATCH] Use new waypoint constructor. --- mapsource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapsource.c b/mapsource.c index 972d90225..43606ea5c 100644 --- a/mapsource.c +++ b/mapsource.c @@ -407,7 +407,7 @@ mps_waypoint_r(FILE *mps_file, int mps_ver, waypoint **wpt) double mps_proximity = unknown_alt; double mps_depth = unknown_alt; - thisWaypoint = xcalloc(sizeof(*thisWaypoint), 1); + thisWaypoint = waypt_new(); *wpt = thisWaypoint; mps_readstr(mps_file, wptname, sizeof(wptname)); -- 2.30.2